/// Create a new HTTP handle with appropriate global configuration for cargo.
pub fn http_handle(config: &Config) -> CargoResult<http::Handle> {
- let handle = http::handle();
+ let handle = http::handle().timeout(60);
let handle = match try!(http_proxy(config)) {
Some(proxy) => handle.proxy(proxy),
None => handle,
[http]
proxy = "..." # HTTP proxy to use for HTTP requests (defaults to none)
-timeout = 30000 # Timeout for each HTTP request, in milliseconds
+timeout = 60000 # Timeout for each HTTP request, in milliseconds
[build]
jobs = 1 # number of jobs to run by default (default to # cpus)